BerryFlavor

@Serializable
data class BerryFlavor(val id: Int, val name: String, val berries: List<FlavorBerryMap>, val contestType: Handle.Named<ContestType>, val names: List<Name>) : NamedModel(source)

Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their nature. See: https://pokeapi.co/docs/v2#berry-flavors

Parameters

id

The identifier for this resource.

name

The name for this resource.

berries

A list of the berries with this flavor.

contestType

The contest type that correlates with this berry flavor.

names

The name of this resource listed in different languages.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, berries: List<FlavorBerryMap>, contestType: Handle.Named<ContestType>, names: List<Name>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard